extends layout

append styles
    link(rel='stylesheet', href='/stylesheets/wximg.css')

block content
    #root
        p(style="font-size:26px;") 选择，上传，预览想， 下载图片测试接口
        img#upload-img(src='/images/1.jpg' style="width:100%;height:auto;")
        .upload(style="margin-top:40px;")
            button.sf-button--success(
            type="button" 
            onclick="wxSDk.uploadImg()"
            style="width:100%;font-size:20px;height:50px;"
            ) 上传图片

append content
    script(src='http://res.wx.qq.com/open/js/jweixin-1.4.0.js')
    script window.wxConfig = !{JSON.stringify(wxConfig)}
    script window.wxConfig.debug = true
    script window.wxConfig.jsApiList = ['chooseImage', 'previewImage', 'uploadImage', 'downloadImage']
    //- script window.wx = !{JSON.stringify(wx)}
    script(src='/javascripts/jssdk.config.js')
    script(src='/javascripts/jssdk.img.js')